home *** CD-ROM | disk | FTP | other *** search
- /* Miscellaneous functions. Kees Lemmens; Aug 1992
-
- Any questions or suggestions about this program can be send to:
- lemmens@dv.twi.tudelft.nl
- */
-
- #ifndef __UX_MISC_H
- #define __UX_MISC_H
-
- #ifdef MINT
- # include <mintbind.h>
- #endif
- #include <pwd.h>
- #include <time.h>
-
- #define PATH "u:\\bin,u:\\usr\\bin"
- #define DEV "u:\\dev\\"
- #define ETC "u:\\etc\\"
- #define TMPPW ETC "passwd.nw"
- #define SYSLOG ETC "syslog"
- #define CONSOLE DEV "console"
-
- #define WELCOME ETC "welcome" /* request from Jeroen Berger ! */
-
- #define sleep(s) Mysleep(s) /* more efficient under MINT */
-
- int RunningMint(void);
- void Delay(clock_t ticks); /* 1 tick =1/1000 sec */
- void Mysleep(unsigned seconds);
- char *ux2dos(char *string);
- void *encrypt(char *passwd);
- int check_pw(char *login_pw,struct passwd *pwent);
- void tty_flush(void);
- void Put(char *cmd);
- void Get(char *str,int nr,int mode);
- int mk_devnm(char *dev,char *arg);
-
- #endif